home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / include / scribus-ng / commonstrings.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-06-20  |  8.0 KB  |  264 lines

  1. /*
  2. For general Scribus (>=1.3.2) copyright and licensing information please refer
  3. to the COPYING file provided with the program. Following this notice may exist
  4. a copyright and/or license notice that predates the release of Scribus 1.3.2
  5. for which a new license (GPL+exception) is in place.
  6. */
  7. /***************************************************************************
  8.     begin                : Aug 2005
  9.     copyright            : (C) 2005 by Craig Bradney
  10.     email                : cbradney@zip.com.au
  11. ***************************************************************************/
  12.  
  13. /***************************************************************************
  14. *                                                                         *
  15. *   ScMW program is free software; you can redistribute it and/or modify  *
  16. *   it under the terms of the GNU General Public License as published by  *
  17. *   the Free Software Foundation; either version 2 of the License, or     *
  18. *   (at your option) any later version.                                   *
  19. *                                                                         *
  20. ***************************************************************************/
  21.  
  22. #ifndef COMMONSTRINGS_H
  23. #define COMMONSTRINGS_H
  24.  
  25. #include <QObject>
  26. #include <QString>
  27.  
  28. class QEvent;
  29.  
  30. #include "scribusapi.h"
  31.  
  32. /*! \brief A simple common strings class to reduce the string count and ease
  33.  the translation process a little.
  34.  - Contains untranslated and translated versions of the strings to
  35.    help with reduction of future reliance of translated strings in
  36.    "real" code
  37.  - Currently stores GUI strings such as &OK and its translated
  38.    version, but not the string without the &.
  39.  - BE CAREFUL with context. Simple strings should be stored here
  40.    that are obviously a verb or a noun, and if multiple contexts
  41.    don't have different translations relating to verb/noun/gender
  42.    in some languages. This is the reason basic words have been
  43.    done initially.
  44.  
  45.  trNone = tr("None") was removed because it's problematic in
  46.    East European langiages.
  47. */
  48. class SCRIBUS_API CommonStrings : public QObject
  49. {
  50.     Q_OBJECT
  51. public:
  52.     CommonStrings();
  53.     
  54.     virtual void changeEvent(QEvent *e);
  55.  
  56.     /**
  57.      * \brief Return the translated Page Set string if given the "untranslated" one
  58.      * @param untrString "untranslated" string
  59.      * @return translated string
  60.      */
  61.     static const QString& translatePageSetString(const QString &untrString);
  62.     /**
  63.      * \brief Return the translated Page Set Location string if given the "untranslated" one
  64.      * @param untrString "untranslated" string
  65.      * @return translated string
  66.      */
  67.     static const QString& translatePageSetLocString(const QString &untrString);
  68.     /**
  69.      * \brief Return the untranslated Page Set string if given the translated one
  70.      * @param trString translated string
  71.      * @return "untranslated" string
  72.      */
  73.     static const QString& untranslatePageSetString(const QString &trString);
  74.     /**
  75.      * \brief Return the untranslated Page Set Location string if given the translated one
  76.      * @param trString translated string
  77.      * @return "untranslated" string
  78.      */
  79.     static const QString& untranslatePageSetLocString(const QString &trString);
  80.     /**
  81.      * \brief Return the untranslated Page Set Location string if given the translated one
  82.      * @param trString translated string
  83.      * @return "untranslated" string
  84.      */
  85.     static const QString& translatePenStyleName(Qt::PenStyle ps);
  86.     static void languageChange();
  87.     static QString _Apply;
  88.     static QString tr_Apply;
  89.     static QString _Cancel;
  90.     static QString tr_Cancel;
  91.     static QString None;
  92.     static QString tr_None;
  93.     static QString tr_NoneColor;
  94.     static QString _OK;
  95.     static QString tr_OK;
  96.     static QString _Save;
  97.     static QString tr_Save;
  98.     static QString Warning;
  99.     static QString trWarning;
  100.     //! \brief Translated "Yes"
  101.     static QString trYes;
  102.     //! \brief Translated "No"
  103.     static QString trNo;
  104.     //! \brief Translated "Yes" with key accelerator "&Yes"
  105.     static QString trYesKey;
  106.     //! \brief Translated "No" with key accelerator "&No"
  107.     static QString trNoKey;
  108.     
  109.     //Item Types
  110.     static QString itemType_TextFrame;
  111.     static QString itemType_ImageFrame;
  112.     static QString itemType_Line;
  113.     static QString itemType_Polygon;
  114.     static QString itemType_Polyline;
  115.     static QString itemType_PathText;
  116.     static QString itemType_LatexFrame;
  117.     static QString itemType_Multiple;
  118.     
  119.     static QString itemSubType_PDF_PushButton;
  120.     static QString itemSubType_PDF_TextField;
  121.     static QString itemSubType_PDF_CheckBox;
  122.     static QString itemSubType_PDF_ComboBox;
  123.     static QString itemSubType_PDF_ListBox;
  124.     static QString itemSubType_PDF_TextAnnotation;
  125.     static QString itemSubType_PDF_LinkAnnotation;
  126.     
  127.     //Page Size
  128.     static QString customPageSize;
  129.     static QString trCustomPageSize;
  130.  
  131.     //Page Sets
  132.     static QString pageSet1;
  133.     static QString pageSet2;
  134.     static QString pageSet3;
  135.     static QString pageSet4;
  136.     static QString trPageSet1;
  137.     static QString trPageSet2;
  138.     static QString trPageSet3;
  139.     static QString trPageSet4;
  140.     static QString pageLocLeft;
  141.     static QString pageLocMiddle;
  142.     static QString pageLocMiddleLeft;
  143.     static QString pageLocMiddleRight;
  144.     static QString pageLocRight;
  145.     static QString trPageLocLeft;
  146.     static QString trPageLocMiddle;
  147.     static QString trPageLocMiddleLeft;
  148.     static QString trPageLocMiddleRight;
  149.     static QString trPageLocRight;
  150.     
  151.     //Master Page Default Names
  152.     static QString masterPageNormal;
  153.     static QString trMasterPageNormal;
  154.     static QString masterPageNormalLeft;
  155.     static QString trMasterPageNormalLeft;
  156.     static QString masterPageNormalMiddle;
  157.     static QString trMasterPageNormalMiddle;
  158.     static QString masterPageNormalRight;
  159.     static QString trMasterPageNormalRight;
  160.     
  161.     //Pen Styles
  162.     static QString trPenStyle_SolidLine;
  163.     static QString trPenStyle_DashedLine;
  164.     static QString trPenStyle_DottedLine;
  165.     static QString trPenStyle_DashDotLine;
  166.     static QString trPenStyle_DashDotDotLine;
  167.     
  168.     //Default Styles
  169.     static QString DefaultParagraphStyle;
  170.     static QString DefaultCharacterStyle;
  171.     static QString DefaultLineStyle;
  172.     static QString trDefaultParagraphStyle;
  173.     static QString trDefaultCharacterStyle;
  174.     static QString trDefaultLineStyle;
  175.     
  176.     //Days and Months
  177.     static QString monday; 
  178.     static QString tuesday;
  179.     static QString wednesday;
  180.     static QString thursday;
  181.     static QString friday;
  182.     static QString saturday;
  183.     static QString sunday;
  184.  
  185.     static QString january;
  186.     static QString february;
  187.     static QString march;
  188.     static QString april;
  189.     static QString may;
  190.     static QString june;
  191.     static QString july;
  192.     static QString august;
  193.     static QString september;
  194.     static QString october;
  195.     static QString november;
  196.     static QString december;
  197.     
  198.     //Color Related
  199.     static QString trRGB;
  200.     static QString trCMYK;
  201.     static QString trGrayscale;
  202.     static QString trDuotone;
  203.     static QString trUnknownCS;
  204.  
  205.     //Color Blindness
  206.     static QString trVisionNormal;
  207.     static QString trVisionProtanopia;
  208.     static QString trVisionDeuteranopia;
  209.     static QString trVisionTritanopia;
  210.     static QString trVisionFullColorBlind;
  211.     
  212.     //Tab Fill Custom
  213.     static QString trCustomTabFill;
  214.     
  215.     //Paragraph Style Optical Margins
  216.     static QString trOpticalMarginsNone;
  217.     static QString trOpticalMarginsLeftProtruding;
  218.     static QString trOpticalMarginsRightProtruding;
  219.     static QString trOpticalMarginsLeftHangPunct;
  220.     static QString trOpticalMarginsRightHangPunct;
  221.     static QString trOpticalMarginsDefault;
  222.     
  223.     //Paragraph Style Word Tracking
  224.     static QString trMinWordTracking;
  225.     static QString trMaxWordTracking;
  226.     
  227.     //Paragraph Style Glyph Extension
  228.     static QString trMinGlyphExtension;
  229.     static QString trMaxGlyphExtension;
  230.  
  231.     //PostScript or other PDL strings
  232.     static QString PostScript;
  233.     static QString trPostScript;
  234.     static QString PDF_1_3;
  235.     static QString PDF_1_4;
  236.     static QString PDF_1_5;
  237.     static QString PDF_X3;
  238.  
  239.     static QString PostScript1;
  240.     static QString trPostScript1;
  241.     static QString PostScript2;
  242.     static QString trPostScript2;
  243.     static QString PostScript3;
  244.     static QString trPostScript3;
  245.     static QString WindowsGDI;
  246.     static QString trWindowsGDI;
  247.     
  248.     //Units strings
  249.     static QString trStrPT;
  250.     static QString trStrMM;
  251.     static QString trStrIN;
  252.     static QString trStrP;
  253.     static QString trStrCM;
  254.     static QString trStrC;
  255.     static QString strPT;
  256.     static QString strMM;
  257.     static QString strIN;
  258.     static QString strP;
  259.     static QString strCM;
  260.     static QString strC;
  261. };
  262.  
  263. #endif
  264.